package com.test.design.pattern.decorator;

/**
 * @ClasName Client
 * @Descripution TODO
 * @Author leikw
 * @Date 2021/12/16 10:16
 * @Version V1.0
 */
public class Client {

    public static void main(String[] args) {

        FastFood food = new FriedRice();

        System.out.println(food.getDesc() + "  " + food.cost() + "元");

        System.out.println("===============");


        food = new Egg(food);

        System.out.println(food instanceof Egg );
        System.out.println(food.getDesc() + "  " + food.cost() + "元");

    }

}
